<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>选择房间对话框</title>
<link href="../admin/saleInformation/css/css.css" rel="stylesheet"
	type="text/css" />
	<script type="text/javascript" src="../admin/saleInformation/js/jquery.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/ie6png.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('div,ul,li,a,p,img,body,dl,dt,dd');</script>
<![endif]-->
<script type="text/javascript">
	function MM_jumpMenu(targ, selObj, restore) { //v3.0
		eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value
				+ "'");
		if (restore)
			selObj.selectedIndex = 0;
	}

	function select1(){
		var number = document.getElementById("number").value;
		//alert(number);
		document.f1.action = "${pageContext.request.contextPath}/openingReport/showRoomNotOpen.action";
		document.f1.submit();
	}
	
	function selectAll(){
		var arr = document.getElementsByName("ids");
		if(document.getElementById("checkbox1").checked){	
			for(var i in arr){
				arr[i].checked = true;
			}
		}else{
			for(var i in arr){
				arr[i].checked = false;
			}
		}
	}
	
	function determine1(){
		document.f1.action = "${pageContext.request.contextPath}/openingReport/showRoomNotOpenById.action";
		document.f1.submit();
	}
</script>
<script>
	
</script>
</head>
<body style="background: #fff;">
	<br />
	<form method="post" id="f1" name="f1">
	<div style="width: 1000px;" class="tbox01 boxcenter">
		<div class="tbox02">
			<dl>
				<dt></dt>
				<dd>
					<div class="tbox02menu">
						<ul>
							<li><a href="#">取消</a></li>
							<li><a onclick="determine1()">确定</a></li>
						</ul>
					</div>
				</dd>
			</dl>
		</div>
		<div class="tbox03">
			<div class="tbox04a">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="47%" valign="top"><table width="100%" border="0"
								cellspacing="0" cellpadding="0">
								<tr align="left" valign="top">
									<td><img src="../admin/saleInformation/images/op5_1.gif" /></td>
									<td class="ybox08td2"><ul>待选房间查询
										</ul></td>
									<td class="ybox08td3"></td>
									<td><img src="../admin/saleInformation/images/op5_4.gif" /></td>
								</tr>
							</table>
							<div class="ybox08div">
								<div class="tbox05 margb7">
									<dl>
										<dt>
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="55" height="25" align="right"
															style="padding-right: 5px;">楼 栋：</td>
														<td style="padding-right: 15px;"><input name="number"
															type="text" class="black12" id="number"
															style="width: 100%" /></td>
														<td width="62" rowv class="button26h"><a id="select1"
															onclick="select1()">查询</a>															
															</div></td>
													</tr>
												</table>
											</form>
										</dt>
									</dl>
								</div>
								<table width="100%" border="0" align="center" cellpadding="0"
									cellspacing="1" class="ybox06table">
									<tr>
										<td width="30" class="ybox06td01"><input type="checkbox"
											name="checkboxid" id="checkbox1" onclick="selectAll()" /></td>
										<td width="30" class="ybox06td01">序号</td>
										<td class="ybox06td01">房间名称</td>
										<td class="ybox06td01">建筑面积</td>
										<td class="ybox06td01">房间价格</td>
									</tr>
									<c:forEach var="room" items="${lists }" varStatus="vs">
										<tr>
											<td width="30" class="ybox06td01"><input type="checkbox"
												name="ids" id="roomId" value="${room.id }" /></td>
											<td width="30" class="ybox06td01">${vs.count }</td>
											<td class="ybox06td01">${room.number }</td>
											<td class="ybox06td01">${room.area }</td>
											<td class="ybox06td01">${room.roomtotal }</td>
										</tr>
									</c:forEach>
								</table>
							</div></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</body>
</html>